/*
 ============================================================================
 Name		: ResponseDispatherData.cpp
 Author	  : 
 Version	 : 1.0
 Copyright   :
 Description : CResponseCate1Data implementation
 ============================================================================
 */

#include "ResponseCate1Data.h"
#include "ProjectsDefines.h"
#include "ResponseHomepageData.h"
#include "ResponseMagazineItemData.h"
CResponseCate1DataItem::CResponseCate1DataItem(TCateItemType type)
{
    _type = type;
}

CResponseCate1DataItem::~CResponseCate1DataItem()
{
    SAFE_DELETE( _url );
    SAFE_DELETE( _name );
}

CResponseCate1DataItem* CResponseCate1DataItem::NewLC(TCateItemType type)
{
    CResponseCate1DataItem* self = new ( ELeave ) CResponseCate1DataItem( type );
    CleanupStack::PushL( self );
    self->ConstructL( );
    return self;
}

CResponseCate1DataItem* CResponseCate1DataItem::NewL(TCateItemType type)
{
    CResponseCate1DataItem* self = CResponseCate1DataItem::NewLC( type );
    CleanupStack::Pop( ); // self;
    return self;
}

void CResponseCate1DataItem::ConstructL()
{

}

/*
 *
 */
CResponseCate1Data::CResponseCate1Data()
{
    // No implementation required
}

CResponseCate1Data::~CResponseCate1Data()
{
    SAFE_DESTROY( _cates );
    SAFE_DESTROY( _items );
}

CResponseCate1Data* CResponseCate1Data::NewLC()
{
    CResponseCate1Data* self = new ( ELeave ) CResponseCate1Data( );
    CleanupStack::PushL( self );
    self->ConstructL( );
    return self;
}

CResponseCate1Data* CResponseCate1Data::NewL()
{
    CResponseCate1Data* self = CResponseCate1Data::NewLC( );
    CleanupStack::Pop( ); // self;
    return self;
}

void CResponseCate1Data::ConstructL()
{

}
